package com.leiyuee.springbase;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

//spring容器的配置类,配置了扫描路径
@ComponentScan("com.leiyuee.springbase.*")
@EnableAspectJAutoProxy // 开启AOP
public class AppConfig {

    // @Bean //现在定义OrderService类型的 bean,现在就有 3个OrderService类型bean
    // public OrderService orderService1(){
    //     return  new OrderService();
    // }
    // @Bean
    // public OrderService orderService2(){
    //     return  new OrderService();
    // }
}
